Release 10.1A: OpenEdge Development:
Progress 4GL Reference
CAN-QUERY function
Returns a logical value indicating whether you can query a specified attribute or method for a specified widget.
Syntax
widget-handleAn expression that evaluates to a widget handle. The handle must refer to a valid widget.
attribute-nameAn expression that evaluates to a character-string value. The contents of the string must be an attribute or method name. For more information on attributes, see the "Attributes and Methods Reference" section.
ExampleThe following example prompts for a widget type and an attribute. It creates a widget of the specified type and passes a handle to that widget and the attribute you specified to the CAN-QUERY and CAN-SET functions. Then it reports whether the attribute can be queried or set for that widget.
Note
For SpeedScript, use with buffer-field, buffer-object, buffer, and query-object handles.
See also
CAN-SET function, LIST-QUERY-ATTRS function, LIST-SET-ATTRS function
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |